#include <QApplication>
#include <QQmlApplicationEngine>
#include <QQuickWindow>
#include <QQmlEngine>
#include <QQmlComponent>

#include "ciowork.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    qmlRegisterType<CIoWork>("CIoWork", 1, 0, "CIoWork");

    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:///main.qml")));

    QQuickWindow *based=qobject_cast<QQuickWindow*>(engine.rootObjects().at(0));


    return app.exec();
}
